package com.zhouxiaoge.annotations;

import com.zhouxiaoge.annotations.annotationsverfy.ValidateService;
import com.zhouxiaoge.annotations.xml.Head;
import com.zhouxiaoge.annotations.xml.Main;
import com.zhouxiaoge.annotations.xml.RequsetXml;
import org.junit.Test;

public class TestMain {

    @Test
    public void test() throws Exception {
        ValidateService validateService = new ValidateService();
        StringBuffer stringBuffer = new StringBuffer();

        RequsetXml requset = new RequsetXml();
        Head head = new Head();
//        head.setUserCode("zhouxaigoe");
//        head.setPassWord("123123123");

        Main main = new Main();
//        main.setErrorInfo("errorInfo");
//        main.setResultCode("resultCode");
//        main.setSerialNumber("serialNumber");
//        main.setTransDate("2017-05-12 16:38:54");
        main.setTransDate("2017-05-12 ");
//        main.setTransNo("transNo");
//        main.setTransPortNum("transPortNum");

//        Base base = new Base();
//        base.setPolicyNo("policyNo");
//        base.setReason("reason");

        requset.setHead(head);
        requset.setMain(main);
//        requset.setBase(base);

        validateService.validateSeeRequest(requset, stringBuffer);
        System.out.println(stringBuffer);
    }
}